package com.jiazhong.shixi.ceshi.controller;

import com.jiazhong.shixi.ceshi.until.JsonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//这是一个控制类
@RestController
@RequestMapping("/first")//网址路径
public class FirstController {
    @RequestMapping("/a")
    public String a(){return "this is a first controller";}
    @RequestMapping("/b")
    public JsonResult b(){
        return new JsonResult<>(true,200,"this is a first controller","");
    }
}
